genie-drs
.drs is the resource archive file format for the Genie Engine, used by Age of Empires 1/2 and Star Wars: Galactic Battlegrounds. .drs files contain tables, each of which contain resources of a single type. Resources are identified by a numeric identifier.
This crate only supports reading files right now.
Install
Add to Cargo.toml:
[]
= "^0.1.1"
Example
use File;
use DRSReader;
let mut file = open?;
let drs = new?;
for table in drs.tables
Wishlist
- An API that doesn't require passing in the file handle manually
- A file mapping counterpart for the
read_resource
API, using memmap probably.